package com.machinecontroller.model;

import java.util.List;

/**
 * Created by zhangxuehui on 2017/12/13.
 */
public class EVModel {
    private EV_json EV_json;

    public EV_json getEV_json() {
        return EV_json;
    }

    public void setEV_json(EV_json EV_json) {
        this.EV_json = EV_json;
    }

    public static class EV_json {


        private String portName;
        private int EV_type;
        private int result;
        private int addr;//柜号
        private int box;//格子
        private int is_success;//是否成功，1成功，0失败
        private int port_id;//串口Id
        private int cool;//是否支持制冷
        private int hot;//是否支持加热
        private int light;//是否支持照明
        private List<SumModel> sum;//货道总数：88如1-88
        private int opt;//原样返回

        public String getPortName() {
            return portName;
        }

        public void setPortName(String portName) {
            this.portName = portName;
        }

        public int getEV_type() {
            return EV_type;
        }

        public void setEV_type(int EV_type) {
            this.EV_type = EV_type;
        }

        public int getResult() {
            return result;
        }

        public void setResult(int result) {
            this.result = result;
        }

        public int getAddr() {
            return addr;
        }

        public void setAddr(int addr) {
            this.addr = addr;
        }

        public int getBox() {
            return box;
        }

        public void setBox(int box) {
            this.box = box;
        }

        public int getIs_success() {
            return is_success;
        }

        public void setIs_success(int is_success) {
            this.is_success = is_success;
        }

        public int getPort_id() {
            return port_id;
        }

        public void setPort_id(int port_id) {
            this.port_id = port_id;
        }

        public int getCool() {
            return cool;
        }

        public void setCool(int cool) {
            this.cool = cool;
        }

        public int getHot() {
            return hot;
        }

        public void setHot(int hot) {
            this.hot = hot;
        }

        public int getLight() {
            return light;
        }

        public void setLight(int light) {
            this.light = light;
        }

        public List<SumModel> getSum() {
            return sum;
        }

        public void setSum(List<SumModel> sum) {
            this.sum = sum;
        }

        public int getOpt() {
            return opt;
        }

        public void setOpt(int opt) {
            this.opt = opt;
        }

        @Override
        public String toString() {
            return "EV_json{" +
                    "portName='" + portName + '\'' +
                    ", EV_type=" + EV_type +
                    ", result=" + result +
                    ", addr=" + addr +
                    ", box=" + box +
                    ", is_success=" + is_success +
                    ", port_id=" + port_id +
                    ", cool=" + cool +
                    ", hot=" + hot +
                    ", light=" + light +
                    ", sum=" + sum.toString() +
                    ", opt=" + opt +
                    '}';
        }

        public static class SumModel {
            private String no;
            private String state;

            public String getNo() {
                return no;
            }

            public void setNo(String no) {
                this.no = no;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }

            @Override
            public String toString() {
                return "SumModel{" +
                        "no='" + no + '\'' +
                        ", state='" + state + '\'' +
                        '}';
            }
        }
    }
}
